﻿using System;

namespace HelloWorld.Web
{
    public partial class Demo1 : System.Web.UI.Page
    {
        public string result { get; set; }

        protected void Page_Load(object sender, EventArgs e)
        {
            if (Request.Form.Get("submitform") != null)
            {
                var dosomething = new DoSomethingService();
                result = dosomething.DoSomething(Request.Form.Get("todo"));
            }
            else
            {
                result = "You haven't done anything yet";
            }
        }
    }
}
